package com.newtouch.ainsurtech.client.demo;/**
 * Created by jovi on 27/09/2017.
 */

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2016
 * All rights reserved. 2017-09-27 16:39
 * </p>
 *
 * @author MaoJiaWei
 * @version 1.0
 */
@Api(tags="测试样例")
@RestController
public class HelloController {

    @Value("${server.port}")
    private String port;

    @ApiOperation("测试方法")
    @RequestMapping("/hi")
    public String sayHi(@RequestParam String name) {
        return "Hi " + name + ", I am from port:" + port;
    }
}

